package homework.day318.demo2;

public class Circle extends TuXing {
    private double r;


    public Circle() {
    }

    public Circle(double r) {
        super.draw();
        this.r = r;
    }

    public double area(){
        return 3.14*r*r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }


}
